import request from '@/utils/request'

export function listRoleItem(data) {
  return request({
    url: '/api/uc/role/list_item',
    method: 'post',
    data
  })
}

export function listRole(data) {
  return request({
    url: '/api/uc/role/page',
    method: 'post',
    data
  })
}

export function addRole(data) {
  return request({
    url: '/api/uc/role/save',
    method: 'post',
    data
  })
}

export function updateRole(data) {
  return request({
    url: '/api/uc/role/update',
    method: 'post',
    data
  })
}

export function deleteRole(data) {
  return request({
    url: '/api/uc/role/delete',
    method: 'post',
    data
  })
}

export function listResourceId(data) {
  return request({
    url: '/api/uc/role/list_resource_id',
    method: 'post',
    data
  })
}

export function listRoleType() {
  return request({
    url: '/api/uc/role/list_role_type',
    method: 'post'
  })
}
